package org.lex.dbq.view.action;

import org.eclipse.jface.action.Action;
import org.eclipse.swt.widgets.Shell;
import org.lex.dbq.DBQOperator;
import org.lex.dbq.DBQApplication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class BaseAction extends Action {
	protected Logger log = LoggerFactory.getLogger(ConnectTemplateAction.class);

	public DBQApplication getApplication() {
		return DBQApplication.getApplication();
	}

	public Shell getShell() {
		return DBQApplication.getApplication().getShell();
	}

	public DBQOperator getOperator() {
		return DBQApplication.getApplication().getOperator();
	}
}
